home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
C/C++ Users Group Library 1996 July
/
C-C++ Users Group Library July 1996.iso
/
listings
/
v_09_01
/
9n01104e
< prev
next >
Encoding:
Amiga
Atari
Commodore
DOS
FM Towns/JPY
Macintosh
Macintosh JP
Macintosh to JP
NeXTSTEP
RISC OS/Acorn
Shift JIS
UTF-8
Wrap
Text File
|
1990-10-03
|
451 b
|
15 lines
s = Tcl_GetVar(interp,"match_max",0);
if (buf_size != (new_size = 2*atoi(s))) {
if (0 == (new_buf = realloc(buf,new_size+1))) {
tcl_error("failed to grow match buf to %d bytes",
new_size);
return(TCL_ERROR);
}
buf_size = new_size;
buf = new_buf;
}
Listing 5